<template>
  <lay-config-provider
      :themeVariable="appStore.themeVariable"
      :theme="appStore.theme"
      :locales="locales"
      :locale="appStore.locale"
  >
    <router-view/>
  </lay-config-provider>
</template>

<script lang="ts" setup>
import useAppStore from "@/store/modules/app";
import zh_CN from "@/lang/zh_CN";
import en_US from "@/lang/en_US";
import Config from "@/config";

const appStore = useAppStore()
const locales = [
  {name: 'zh_CN', locale: zh_CN, merge: true},
  {name: 'en_US', locale: en_US, merge: true}
]
document.title = Config.appTitle

</script>
